﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>homePage</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>

    <link href="/css/default.css" rel="stylesheet" />
    <script src="homecodebehind.js"></script>
    <link href="/pages/home/home.css" rel="stylesheet" />
    <script src="/pages/home/home.js"></script>
</head>
<body>
    <!-- The content that will be loaded and displayed. -->
    <div class="fragment homepage">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back" disabled type="button"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle">Welcome to PetPassport!</span>
            </h1>
        </header>
        <section aria-label="Main content" role="main">
            <div id="petbindinglist"  data-win-control="WinJS.Binding.Template" >
                <h2 style="height:120px; width:240px; background-color:lightgreen;" data-win-bind="innerText: name"></h2>
            </div>
            <div>
                <label for="petslist">Pets:</label>
                <div id="petslist" data-win-control="WinJS.UI.ListView" data-win-options="{
                        itemDataSource: ViewModels.petList.dataSource,
                        itemTemplate: select('#petbindinglist'),
                        oniteminvoked: HomeCodeBehind.goToPetInfoPage
                        }">
                </div>
            </div>
            <div id="vetbindinglist"  data-win-control="WinJS.Binding.Template" >
                <h2 style="height:120px; width:240px; background-color:lightcoral" data-win-bind="innerText: name"></h2>
            </div>
            <div>
                <label for="vetslist">Vets:</label>
                <div id="vetslist" data-win-control="WinJS.UI.ListView" data-win-options="{
                        itemDataSource: ViewModels.vetList.dataSource,
                        itemTemplate: select('#vetbindinglist'),
                        oniteminvoked: HomeCodeBehind.goToVetInfoPage
                        }">
                </div>
            </div>
        </section>
    </div>


</body>
</html>
